//测试折线时间轴标签的自动排列情况
define({
  "color": [
    "#03a9f4",
    "#90ed7d",
    "#e2db1a",
    "#f79726",
    "#0677ff",
    "#6b2eda",
    "#30d209",
    "#2647ff",
    "#b121ef",
    "#f32d2e"
  ],
  "title": {
    "textStyle": {
      "color": "#ffffff",
      "fontSize": 12
    }
  },
  "tooltip": {
    "trigger": "axis",
    "axisPointer": {
      "type": "shadow",
      "shadowStyle": {
        "color": "rgba(2, 44, 76, 0.3)"
      },
      "z": -1
    },
    formatter: function (params) {             let html = moment(params[0].axisValue).format('H:mm:ss');             for (let i = 0; i < params.length; i++) {               const item = params[i];               html += '<br/>' + item.marker + item.seriesName + ': ' + (item.value.value ? item.value.value[1] : item.value[1]);             }             return html;           }
  },
  "legend": {
    "orient": "horizontal",
    "left": "right",
    "top": "top",
    "textStyle": {
      "fontSize": 12,
      "color": "#fff"
    },
    "show": true,
    "data": [
      "网联-成功次数",
      "其他-成功次数",
      "银联-成功次数"
    ]
  },
  "grid": {
    "top": 36,
    "left": 10,
    "right": 10,
    "bottom": 10,
    "containLabel": true
  },
  "toolbox": {
    "show": true
  },
  "xAxis": {
    "boundaryGap": false,
    "nameTextStyle": {
      "color": "#fff",
      "opacity": 1,
      "fontSize": 12
    },
    "axisLine": {
      "show": true,
      "onZero": true,
      "lineStyle": {
        "color": "#236592",
        "width": 1,
        "opacity": 100
      }
    },
    "axisTick": {
      "show": false
    },
    "axisLabel": {
      "show": true,
      "margin": 8,
      "rotate": 0,
      "textStyle": {
        "color": "#70c3fb",
        "opacity": 100,
        "fontSize": 12
      },
      formatter: function (value) { return moment(value).format("H:mm:ss") }
    },
    "splitLine": {
      "show": true,
      "lineStyle": {
        "color": "#236592",
        "opacity": 1
      }
    },
    "type": "time",
    "seperate": "auto",
    "splitNumber": 0
  },
  "yAxis": [
    {
      "nameTextStyle": {
        "color": "#fff",
        "opacity": 1,
        "fontSize": 12
      },
      "axisLine": {
        "show": true,
        "onZero": false,
        "lineStyle": {
          "color": "#236592",
          "width": 1,
          "opacity": 100
        }
      },
      "axisTick": {
        "show": false
      },
      "axisLabel": {
        "show": true,
        "margin": 8,
        "rotate": 0,
        "textStyle": {
          "color": "#70c3fb",
          "opacity": 100,
          "fontSize": 12
        }
      },
      "splitLine": {
        "show": true,
        "lineStyle": {
          "color": "#236592",
          "opacity": 1
        }
      }
    },
    {
      "show": false,
      "axisLine": {
        "show": false,
        "onZero": false,
        "lineStyle": {
          "opacity": 100,
          "color": "#236592",
          "width": 1
        }
      },
      "axisTick": {
        "show": false
      },
      "axisLabel": {
        "show": false,
        "margin": 8,
        "textStyle": {
          "color": "#70c3fb",
          "opacity": 100,
          "fontSize": 12
        }
      },
      "splitLine": {
        "show": false,
        "lineStyle": {
          "color": "#236592",
          "opacity": 1
        }
      }
    }
  ],
  "series": [
    {
      "name": "网联-成功次数",
      "data": [
        [
          1596545280000,
          46.738
        ],
        [
          1596545340000,
          null
        ],
        [
          1596545400000,
          null
        ],
        [
          1596545460000,
          null
        ],
        [
          1596545520000,
          null
        ],
        [
          1596545580000,
          44.937
        ],
        [
          1596545640000,
          null
        ],
        [
          1596545700000,
          null
        ],
        [
          1596545760000,
          null
        ],
        [
          1596545820000,
          45.048
        ],
        [
          1596545880000,
          null
        ],
        [
          1596545940000,
          null
        ],
        [
          1596546000000,
          null
        ],
        [
          1596546060000,
          null
        ],
        [
          1596546120000,
          null
        ],
        [
          1596546180000,
          45.372
        ],
        [
          1596546240000,
          null
        ],
        [
          1596546300000,
          44.797
        ],
        [
          1596546360000,
          null
        ],
        [
          1596546420000,
          45.522
        ],
        [
          1596546480000,
          null
        ],
        [
          1596546540000,
          null
        ]
      ],
      "type": "line",
      "areaStyle": {
        "normal": {
          "show": false,
          "opacity": 0,
          "color": null
        }
      },
      "symbol": "circle",
      "label": {
        "normal": {
          "show": false,
          "formatter": "{c}",
          "textStyle": {
            "fontSize": 12,
            "fontFamily": "Microsoft YaHei,PingFang SC"
          },
          "position": "top"
        }
      },
      "showSymbol": true,
      "symbolSize": 5,
      "lineMode": "curve",
      "stack": false,
      "z": 10,
      "valuetag": {
        "show": false,
        "func": {},
        "fontSize": 20,
        "fontFamily": "Microsoft YaHei,PingFang SC",
        "bold": false,
        "italic": false,
        "color": "#fff",
        "transform_horizon": 0,
        "transform_vertical": 0,
        "labelNames": {
          "服务器A": {
            "show": true,
            "originName": "服务器A",
            "newName": "服务器A"
          },
          "服务器B": {
            "show": true,
            "originName": "服务器B",
            "newName": "服务器B"
          }
        }
      },
      "smooth": 0.3,
      "step": false,
      "markLine": {
        "data": []
      }
    },
    {
      "name": "其他-成功次数",
      "data": [
        [
          1596545280000,
          null
        ],
        [
          1596545340000,
          45.4
        ],
        [
          1596545400000,
          45.073
        ],
        [
          1596545460000,
          45.461
        ],
        [
          1596545520000,
          null
        ],
        [
          1596545580000,
          null
        ],
        [
          1596545640000,
          44.869
        ],
        [
          1596545700000,
          44.835
        ],
        [
          1596545760000,
          null
        ],
        [
          1596545820000,
          null
        ],
        [
          1596545880000,
          null
        ],
        [
          1596545940000,
          44.059
        ],
        [
          1596546000000,
          45.464
        ],
        [
          1596546060000,
          null
        ],
        [
          1596546120000,
          null
        ],
        [
          1596546180000,
          null
        ],
        [
          1596546240000,
          45.017
        ],
        [
          1596546300000,
          null
        ],
        [
          1596546360000,
          44.896
        ],
        [
          1596546420000,
          null
        ],
        [
          1596546480000,
          null
        ],
        [
          1596546540000,
          null
        ]
      ],
      "type": "line",
      "areaStyle": {
        "normal": {
          "show": false,
          "opacity": 0,
          "color": null
        }
      },
      "symbol": "circle",
      "label": {
        "normal": {
          "show": false,
          "formatter": "{c}",
          "textStyle": {
            "fontSize": 12,
            "fontFamily": "Microsoft YaHei,PingFang SC"
          },
          "position": "top"
        }
      },
      "showSymbol": true,
      "symbolSize": 5,
      "lineMode": "curve",
      "stack": false,
      "z": 10,
      "valuetag": {
        "show": false,
        "func": {},
        "fontSize": 20,
        "fontFamily": "Microsoft YaHei,PingFang SC",
        "bold": false,
        "italic": false,
        "color": "#fff",
        "transform_horizon": 0,
        "transform_vertical": 0,
        "labelNames": {
          "服务器A": {
            "show": true,
            "originName": "服务器A",
            "newName": "服务器A"
          },
          "服务器B": {
            "show": true,
            "originName": "服务器B",
            "newName": "服务器B"
          }
        }
      },
      "smooth": 0.3,
      "step": false,
      "markLine": {
        "data": []
      }
    },
    {
      "name": "银联-成功次数",
      "data": [
        [
          1596545280000,
          null
        ],
        [
          1596545340000,
          null
        ],
        [
          1596545400000,
          null
        ],
        [
          1596545460000,
          null
        ],
        [
          1596545520000,
          45.658
        ],
        [
          1596545580000,
          null
        ],
        [
          1596545640000,
          null
        ],
        [
          1596545700000,
          null
        ],
        [
          1596545760000,
          44.933
        ],
        [
          1596545820000,
          null
        ],
        [
          1596545880000,
          44.691
        ],
        [
          1596545940000,
          null
        ],
        [
          1596546000000,
          null
        ],
        [
          1596546060000,
          44.443
        ],
        [
          1596546120000,
          44.696
        ],
        [
          1596546180000,
          null
        ],
        [
          1596546240000,
          null
        ],
        [
          1596546300000,
          null
        ],
        [
          1596546360000,
          null
        ],
        [
          1596546420000,
          null
        ],
        [
          1596546480000,
          45.04
        ],
        [
          1596546540000,
          45.951
        ]
      ],
      "type": "line",
      "areaStyle": {
        "normal": {
          "show": false,
          "opacity": 0,
          "color": null
        }
      },
      "symbol": "circle",
      "label": {
        "normal": {
          "show": false,
          "formatter": "{c}",
          "textStyle": {
            "fontSize": 12,
            "fontFamily": "Microsoft YaHei,PingFang SC"
          },
          "position": "top"
        }
      },
      "showSymbol": true,
      "symbolSize": 5,
      "lineMode": "curve",
      "stack": false,
      "z": 10,
      "valuetag": {
        "show": false,
        "func": {},
        "fontSize": 20,
        "fontFamily": "Microsoft YaHei,PingFang SC",
        "bold": false,
        "italic": false,
        "color": "#fff",
        "transform_horizon": 0,
        "transform_vertical": 0,
        "labelNames": {
          "服务器A": {
            "show": true,
            "originName": "服务器A",
            "newName": "服务器A"
          },
          "服务器B": {
            "show": true,
            "originName": "服务器B",
            "newName": "服务器B"
          }
        }
      },
      "smooth": 0.3,
      "step": false,
      "markLine": {
        "data": []
      }
    }
  ]
})
